import request from '@/utils/request.js'

// //新增
// export const createAnswer = ({topicId,answerType,cementValue,cementProportion,
//     waterValue,waterProportion,sandValue,sandProportion
//     ,gravelValue,gravelProportion,deviationValue})=>
//     request.post()

//更新
// export const updateAnswer =(id,topicId,answerTypem,cementValuem,
//     cementProportion,waterValue,waterProportion,sandValue,
//     sandProportion,gravelValue,gravelProportion,deviationValue)=>
//     request.put(`app/answer/${id}`,{topicId,answerTypem,cementValuem,
//         cementProportion,waterValue,waterProportion,sandValue,
//         sandProportion,gravelValue,gravelProportion,deviationValue})
export const updateAnswer =(obj)=>
    request.put(`app/answer/${obj.id}`,obj)

//获取带分页的，不输入参数啧不带
export const getAnswers = (SkipCount,MaxResultCount)=>
request.get(`app/answer?SkipCount=${SkipCount}&MaxResultCount=${MaxResultCount}`)

//删除
export const deleteAnswer = (id)=>
request.delete(`app/answer/${id}`)

//获取单条
export const getAnswer =(id)=>
request.get(`app/answer/${id}`)